package net.hzlj.platform.enterprise.common;

import java.io.Serializable;

/**
 * @ClassName: EventBusParameter
 * @Description: EventBus所传的参数
 * @Author: Jason.Zhang zhangyujn1989ok@gmail.com
 * @Date: 2015-11-30 16:58:12
 */
public class EventBusParameter implements Serializable {

    //接收到拍照指令
    public static final String ACTION_LIVE_VIDEO_TAKE_PHOTO = "action_live_video_take_photo";
    //视频通信完成之后上传记录到服务器
    public static final String ACTION_LIVE_VIDEO_UPLOAD_LOG = "action_live_video_upload_log";
    //视频通信完成之后上传记录到服务器
    public static final String ACTION_QUESTION_UPDATE = "action_question_update";
    //更新用户信息
    public static final String ACTION_UPDATE_USER = "action_update_user";

    public String action;

    public Object content;

    public EventBusParameter(){

    }

    public EventBusParameter(String action){
        this.action = action;
    }

    public EventBusParameter(String action,Object content){
        this.action = action;
        this.content = content;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "EventBusParameter{" +
                "action='" + action + '\'' +
                ", content=" + content +
                '}';
    }
}
